import numpy as np

x = np.arange(6).reshape(3,2)
print(x)

# 1.flat 迭代
for tmp in x.flat:
    print(tmp, end=' ')
print()
'''
0 1 2 3 4 5
'''